<?php
/**
 * 验证
 */

namespace Common\Controller\App;

class CommonController extends SignController
{
    public function __construct()
    {
        parent::__construct();
        $this->checkLogin();
    }
    /**
     * 检查是否有店铺id.
     */
    public function checkLogin()
    {
        $member_id = session('member_id');
        if (empty($member_id)) {
            $this->ajaxReturn(['code' => 301, 'msg' => '您好，你还未登录，请先登录', 'is_wx' => 0]);
        }
    }
}
